<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/business/leave/list" method="POST">
        <input type="hidden" name="pageSize" value="${pageInfo.pageSize}">
        <input type="hidden" name="pageNum" value="${pageInfo.pageNum}">
        <div class="bjui-searchBar">
            <label>请假名称：</label><input type="text" name="leaveName" value="${leave.leaveName!}" size="15"/>
            <label>状态:</label>
            <@h.select name="available" list=fn.getDicValue('AVAILABLE_STATUS') value=leave.available defaultOptions= {"":"全部"}/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">功能操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" leave="menu">
                        <li><a href="${ctx}/business/leave/create" data-toggle="dialog" data-id="createleave" data-mask="true" data-options="{width:600,height:500}"><i class="fa fa-plus"></i> 新增请假</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed"  data-width="100%">
	    <thead>
	        <tr>
	            <th>请假人姓名</th>
	            <th>请假类型</th>
	            <th>开始日期</th>
	            <th>结束日期</th>
	            <th>请假天数</th>
	            <th>请假原因</th>
	            <th>备注</th>
	            <th>请假状态</th>
	            <th align="center">操作</th>
	        </tr>
	    </thead>
	    <tbody>
	        <#list pageInfo.list as leave>
	            <tr>
	                <td>${leave.userName}</td>
	                <td>${leave.type}</td>
	                <td>${leave.startDate?string('yyyy-MM-dd')}</td>
	                <td>${leave.endDate?string('yyyy-MM-dd')}</td>
                	<td></td>
                	<td>${leave.reason}</td>
                	<td>${leave.remark}</td>
                	<td>${leave.status}</td>
	                <td>
		                <div class="btn-group">
		                	<button type="button" class="btn-default btn-sm dropdown-toggle" data-toggle="dropdown" data-icon="copy">操作<span class="caret"></span></button>
		                    <ul class="dropdown-menu right" leave="menu">
		                        <li><a href="${ctx}/business/leave/${leave.leaveId}/edit" data-toggle="dialog" data-id="editleave${leave.leaveId}" data-title="编辑请假-${leave.userName}" data-mask="true"  data-options="{width:600,height:500}">编辑</a></li>
		                    	<li><a href="${ctx}/business/leave/${leave.leaveId}/delete" data-toggle="doajax"  data-confirm-msg="确定要删除吗？" data-callback="deleteCallback">删除</a></li>
		                    </ul>
		                </div>
	                </td>
	            </tr>
	        </#list>
	    </tbody>
	</table>
</div>
<@h.pageFooter />

